﻿
#if UNITY_IOS || UNITY_IPHONE

using HK.iOS.Editor.PostProcess.Data;

namespace HK.iOS.Editor.Data
{
    /// <summary>
    /// Pbx Build Element
    /// </summary>
    /// <typeparam name="T">Element值类型</typeparam>
    public class PbxBuildElements<T> : IPbxBuildElements<T>
    {
        /// <summary>
        /// Debug
        /// </summary>
        public T Debug { get; protected set; } = default(T);
        
        /// <summary>
        /// Release
        /// </summary>
        public T Release { get; protected set; } = default(T);
        
        /// <summary>
        /// ReleaseForProfiling
        /// </summary>
        public T ReleaseForProfiling { get; protected set; } = default(T);
        
        /// <summary>
        /// ReleaseForRunning
        /// </summary>
        public T ReleaseForRunning { get; protected set; } = default(T);

        /// <summary>
        /// 更新GUID
        /// </summary>
        /// <param name="iDebug">值 - Debug</param>
        /// <param name="iRelease">值 - Release</param>
        /// <param name="iReleaseForProfiling">值 - ReleaseForProfiling</param>
        /// <param name="iReleaseForRunning">值 - ReleaseForRunning</param>
        public void UpdateGuids(T iDebug, T iRelease, T iReleaseForProfiling, T iReleaseForRunning)
        {
            Debug = iDebug;
            Release = iRelease;
            ReleaseForProfiling = iReleaseForProfiling;
            ReleaseForRunning = iReleaseForRunning;
        }
    }
}

#endif
